package com.ruoyi.web.controller.inv;

import com.ruoyi.buy.domain.entity.Inv0004.Inv0004ExcuteInVO;
import com.ruoyi.buy.domain.entity.Inv0004New.Inv0004INWHDto;
import com.ruoyi.buy.domain.entity.Inv0004New.Inv0004NewDto;
import com.ruoyi.buy.service.IInv0004NewService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 库存信息Controller
 * 
 * @author ruoyi
 * @date 2023-12-18
 */
@RestController
@RequestMapping("/inv/inv0004New")
public class Inv0004NewController extends BaseController
{
    @Autowired
    private IInv0004NewService iInv0004NewService;

    /**
     * 查询库存信息列表
     */
    @GetMapping("/list")
    public TableDataInfo list(Inv0004NewDto inv0004NewDto)
    {
        startPage();
        List<Inv0004NewDto> list = iInv0004NewService.selectInv0004NewBillList(inv0004NewDto);
        return getDataTable(list);
    }

    @PostMapping("/executeIn")
    public AjaxResult executeIn(@RequestBody Inv0004INWHDto para) throws Exception {
        return toAjax(iInv0004NewService.executeIn(para));
    }
}
